import request from "@/utils/request";
const URL = '/student'

/***
 * 获取个人信息
 * @returns {*}
 */
export function getStudentInfo(){
    return request({
        method:'get',
        url: URL,
    })
}

/***
 * 修改个人信息
 * @param data
 * @returns {*}
 */
export function changeStudentInfo(data){
    return request({
        method:'put',
        url: URL+'',
        data:data
    })
}

/***
 * 获取个人信息
 * @returns {*}
 */
export function getStudentInfoByUid(uid){
    return request({
        method:'get',
        url: URL+'/'+uid,
    })
}
